package com.mbl.base.core.common.exception;

import lombok.Data;

@Data
public class BaseException extends RuntimeException {
    public Integer code = 500;
    public String message;

    public BaseException(){}

    public BaseException(String message) {
        super(message);
        setMessage(message);
    }

    public BaseException(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
